#include<iostream>
using namespace std;
//利用就是在各种构造函数里，加输出语句
class Test
{
    private:
        int value;
    public:
        Test(int _val):value(_val)
        {
            cout<<"Constructed using one argument constructor, value = "<<value<<endl;
        }
        Test()
        {
            cout<<"Constructed by default, value = "<<0<<endl;
        }
        Test(const Test& a)
        {
            value=a.value;
            cout<<"Constructed using copy constructor, value = "<<value<<endl;
        }

};

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int tag;
        cin>>tag;
        if(tag==0)
        {
            Test ans;
        }
        else if(tag==1)
        {
            int _val;
            cin>>_val;
            Test ans(_val);
        }
        else
        {
            int _val;
            cin>>_val;
            Test tmp(_val);
            Test ans(tmp);
        }
    }
}